// pages/notify/index.ts
Page({
  data: {
    noticeDetail: {}
  },
  onLoad ({ id }) {
    this.getNoticeDetail(id)
  },
  async getNoticeDetail (id) {
    const data = await wx.http.get('/announcement/' + id)
    this.setData({
      noticeDetail: data.data
    })
  }
})
